package com.org.gsc.zsqdemo2;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.FragmentActivity;
import android.view.View;

/**
 * Created by qundui on 2017/6/22.
 */

public abstract class BaseActivity extends FragmentActivity {
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(getLayout());
        DoBusy();
    }

    public <T extends View> T findview(int res) {
        return (T) findViewById(res);

    }

    protected abstract void DoBusy();

    protected abstract int getLayout();


}
